package com.leadingsoft.pwxk.converter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.ProductParamDto;
import com.leadingsoft.pwxk.model.ProductParam;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class ProductParamConverter extends AbstractConverter<ProductParam, ProductParamDto> {

	@Override
	protected ProductParamDto toDtoActual(ProductParam model) {

		ProductParamDto dto = new ProductParamDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setDesign(model.getDesign());
		dto.setParamcontent(model.getParamcontent());
		dto.setParamname(model.getParamname());
		dto.setTechunitsname(model.getTechunitsname());

		return dto;
	}

	@Override
	public void copyProperties(ProductParam model, ProductParamDto dto) {

	}

}
